<style>
.multipage {
    position:relative;
}
.multipage a:hover span {
    color:#fff;
    background:#004199;
    text-decoration: none
}
.multipage span{
    list-style:none;
    height:23px;
    padding-right:8px;
    padding-left:8px;
    background-color: #FFFFFF;
    border: 1px solid #ccc;
    margin-right:1px;
    line-height:23px;
    padding-top:3px;
    padding-bottom:3px;
    cursor:pointer;
}
.multipage .nolink {
    color:#ccc;
    cursor:default;
}
.multipage span.prexpage {
    left: 0;
    width:55px;
    padding: 3px 10px 3px 5px;
    _padding-top:3px;
    _height:17px;
}

.multipage span.nextpage {
    right: 0;
    width:55px;
    padding: 3px 5px 3px 10px;
    _padding-top: 5px;
    _height: 15px;
}

.multipage .total {
    background-color: #F5FBFF;
    border: 1px solid #ccc;
    font-weight: bold;
}
.multipage .button{
    border:0px;
}
.multipage .input{
    border: 1px;
    width: 30px;
    height: 16px;
    background: #FFFFFF;
}
.multipage .current {
    background-color: #fff;
    color: #eb6100;
    border:none;
    cursor:default;
}
</style>
<div class="multipage">
{if $multipage}
        {if $multipage.prexpage}
        <a href="{$multipage['prexpage'].link}"><span class="prexpage">&nbsp;上一页</span></a>
        {else}
        <span class="nolink prexpage">&nbsp;上一页</span>
        {/if}
        {foreach from=$multipage.list key=key item=value}
        {if $value.selected == 1}
        <span class="current">{$value.page}</span>
        {else}
        <a href="{$value.link}"><span>{$value.page}</span></a>
        {/if}
        {/foreach}
        {if $multipage.nextpage}
        <a href="{$multipage['nextpage'].link}"><span class="nextpage">下一页 </span></a>
        {else}
        <span class="nolink nextpage">下一页</span>
        {/if}
{/if}
</div>